package ru.ys.jsolver.view;

import java.awt.Dimension;

public class Runner {
	
	public static void main(String[] args) {
		Dimension d = new Dimension();
		new SizeRequest(d);
		synchronized (d) {
			if (d.width == 0) {
				try {
					d.wait();
				} catch (InterruptedException e) {
					System.exit(0);
				}
			}
		}
		if ((d.width == -1) || (d.height == -1)) {
			System.out.println("Cancel");
			System.exit(0);
		}
		//new MainWindow();
		new CrosswordEditor(d.width, d.height);
	}

}
